

<html>
	<head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="adminmain" />
        <title>SMF Administration - Content Management</title>
    </head>
    
    <body>

		<g:form method="post" >
        	<input type="hidden" name="id" value="${storyImage.id}"/>
			<input type="hidden" name="storyId" value="${storyImage.story.id}"/>
                
			<div class="body">

				<h1>Additional Image - Edit Image Description</h1>

				<br>
				Success Story: <b>${storyImage?.story?.title}</b>
				<br>
				<br>

				<g:if test="${flash.message}">
					<div class="message">${flash.message}</div>
				</g:if>


				<table>
					<tr>

						<td rowspan="2">
							<img src="/smf/images/${storyImage.pictureName}" style="max-width: 300px"/>
						</td>

						<td valign="top" class="value ${hasErrors(bean:storyImage,field:'pictureDescription','errors')}">
							<textarea rows="15" cols="80" 
									  name="pictureDescription">${storyImage?.pictureDescription?.encodeAsHTML()}</textarea>
						</td>

					</tr>
					
					<tr>
						<td>
							<span class="button"><g:actionSubmit action="storyImageSaveText" value="save changes" /></span>
							<span class="button"><g:actionSubmit action="storyImageCancelEdit" value="cancel" /></span>
						</td>
					</tr>					
					
				</table>
				
			</div>
				
		</g:form>

    </body>
</html>

